package com.ssy.lingxi.platform.template.service.service.web;

import com.ssy.lingxi.common.constant.tree.Node;
import com.ssy.lingxi.common.model.dto.UserLoginCacheDTO;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.template.api.model.dto.inner.CategorySortDTO;
import com.ssy.lingxi.platform.template.service.model.dto.common.TemplateIdDTO;
import com.ssy.lingxi.platform.template.service.model.vo.adorn.CategoryVO;
import com.ssy.lingxi.platform.template.service.model.vo.web.CategoryTreeVO;

import java.util.List;

/**
 * @menu web - 平台品类 - 业务处理层
 * @author fhj
 * @version 2.0.0
 * @date 2020/12/15
 */
public interface CategoryWebService {

    Wrapper<List<Node>> findPlatformCategoryTree(Long shopId);

    Wrapper<List<CategoryTreeVO>> findEnterpriseCategoryTree(TemplateIdDTO dto, Long shopId);

    Wrapper<List<Node>> findPurchaseCategoryTree();

    Wrapper<List<CategoryVO>> findAllFirstCategory(Long shopId, Long templateId);

    Void updateCategorySort(CategorySortDTO dto);
}
